<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<f:view contentType="text/html">
	<h:head>
		<f:loadBundle var="main" basename="com.resources.main"></f:loadBundle>
		<f:facet name="first">
			<title>#{main.titulo}</title>
			<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
			<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
			<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
			<link rel="shortcut icon" type="image/png"
				HREF="${request.contextPath}/resources/images/logoViajesClubRoma.png" />
			<link rel="icon" type="image/png"
				HREF="${request.contextPath}/resources/images/logoViajesClubRoma.png" />
			<link rel="apple-touch-icon"
				HREF="${request.contextPath}/resources/images/logoViajesClubRoma.png" />
			<link type="text/css" rel="stylesheet"
				href="${request.contextPath}/styles/style.css" />
			<script src="resources/js/main.js" type="text/javascript"
				charset="utf-8"></script>
		</f:facet>

		<script type="text/javascript">
			$(function() {

				$(".box .h_title").not(this).next("ul").hide("normal");
				$(".box .h_title").not(this).next("#home").show("normal");
				$(".box").children(".h_title").click(function() {
					$(this).next("ul").slideToggle();
				});
			});
			$(function() {
				$(".menubar .h_title").not(this).next("div").hide("normal");
				$(".menubar .h_title").not(this).next("#home").show("normal");
				$(".menubar").children(".h_title").click(function() {
					$(this).next("div").slideToggle();
				});
			});
		</script>

		<script language="javascript">
			function checkKeyCode(evt) {
				var evt = (evt) ? evt : ((event) ? event : null);
				var node = (evt.target) ? evt.target
						: ((evt.srcElement) ? evt.srcElement : null);
				if (event.keyCode == 116) {
					evt.keyCode = 0;
					return false
				}

				if (event.keyCode == 13) {
					evt.keyCode = 0;
					return false
				}
			}
			document.onkeydown = checkKeyCode;
			function NoBack() {
				history.go(1)
			}
			if (history.forward(1)) {
				location.replace(history.forward(1))
			}
		</script>
		<script type="text/javascript">
			// Anyadir Agentes
			function handleAddAgentRequest(xhr, status, args) {
				if (args.validationFailed || !args.success) {
					jQuery('#dialog').effect("shake", {
						times : 3
					}, 100);
				} else {
					addAgent.hide();
				}
			}
			// Modificar Agentes
			function handleModAgentRequest(xhr, status, args) {
				if (args.validationFailed || !args.success) {
					jQuery('#dialog').effect("shake", {
						times : 3
					}, 100);
				} else {
					modAgent.hide();
				}
			}
			// Eliminar Agentes
			function handleDelAgentRequest(xhr, status, args) {
				if (args.validationFailed || !args.success) {
					jQuery('#dialog').effect("shake", {
						times : 3
					}, 100);
				} else {
					delAgent.hide();
				}
			}
		</script>
		<script type="text/javascript"
			src="${request.contextPath}/js/boxOver.js"></script>

	</h:head>


	<h:body>
		<div class="wrap">
			<div id="header">
				<ui:insert name="top">
					<ui:include src="header.xhtml"></ui:include>
				</ui:insert>


			</div>
			<div id="content">
				<ui:insert name="content">
					<ui:insert name="menu">
						<ui:include src="menu.xhtml"></ui:include>
					</ui:insert>
					<div id="main">
						<div class="clear"></div>
						<div class="full_w">


							<ui:insert name="center"></ui:insert>

							<div class="clear"></div>


						</div>
					</div>
					<div class="clear"></div>

				</ui:insert>

			</div>
			<ui:insert name="footer">
				<div id="footer">
					<ui:include src="footer.xhtml"></ui:include>
				</div>
			</ui:insert>
		</div>

		<p:dialog showHeader="false" modal="true" widgetVar="statusDialog"
			header="Status" draggable="false" closable="false" position="center"
			resizable="false">
			<h:outputText value="Espere porfavor..." />
			<br />
			<p:graphicImage value="${request.contextPath}/../img/ajax-loader.gif" />
		</p:dialog>

	</h:body>
</f:view>
</html>






